<?php
JunctionFileCabinet::using("Junction_Core_Factory");
JunctionFileCabinet::using("Test_Resources_Catalog");

class Test_Junction_Core_Factory extends UnitTestCase {
	
	private $_file;
	private $_badFile;
	
	public function __construct() {
		$this->_file = Test_Resources_Catalog::fetch("GoodSchema.xml");
		$this->_badFile = Test_Resources_Catalog::fetch("BadSchema.xml");
	}
	
//	public function testConstruct() {
//		$s1 = Junction_Core_Factory::construct($this->_file);
//		$s2 = Junction_Core_Factory::construct($this->_file);
//		$this->assertTrue($s1 === $s2);
//		
//		try {
//			$s3 = Junction_Core_Factory::construct($this->_badFile);
//			$this->fail();
//		} catch (Junction_Core_Exception $e) {
//			$this->pass();
//		} catch (Exception $e) {
//			$this->fail();
//		}
//	}
}
?>